package cn.anzhiyublog.staranimegallery.model.response;

import lombok.Data;

import java.io.Serializable;

/**
 * 响应包装类
 *
 * @author 安知一只鱼
 */
@Data
public class Response<T> implements Serializable {
    private static final long serialVersionUID = 6595801749501721514L;

    /**
     * 状态码
     */
    private int code;

    /**
     * 数据
     */
    private T data;

    /**
     * 消息
     */
    private String message;

    public Response(int code, T data, String message) {
        this.code = code;
        this.data = data;
        this.message = message;
    }
}
